<template>
  <div v-if="config">
    <el-form-item label="默认值">
      <value-com :id="id" :value-config="config.props"></value-com>
    </el-form-item>
  </div>
</template>

<script setup lang="ts">
import { computed, defineExpose, ref } from "vue";
import { getCurrentConfig } from "../../../utils/objutil";
import ValueCom from './components/value/SelectDept.vue'

let props = defineProps({
  id: {
    type: String,
    default: "",
  },
});

var config = computed(() => {
  return getCurrentConfig(props.id);
});

//校验
const validate = () => {
  return true;
};

defineExpose({ validate });
</script>

<style scoped lang="less"></style>